import { defineAsyncComponent } from 'vue';
import Config from './views/avue-form-design/config';
// import FormDesign from './views/avue-form-design/index.vue';
// import WidgetFormContainer from './views/avue-form-design/WidgetFormContainer.vue';
// import './views/avue-form-design/assets/iconfont/font_1254447_zc9iezc230c.css';
import './views/avue-form-design/assets/iconfont_element_icon/iconfont.css';
import { getAsVal, avueVersion, deepClone } from './views/avue-form-design/utils2/index.js';
// 此样式适配于仓储低代码项目，需要时再打开
// import '@/styles/anvil-code.scss'

export default {
  install(Vue) {
    Vue.use(Config);
    const WidgetFormContainer = () => import('./views/avue-form-design/WidgetFormContainer.vue');
    const AvueFormDesign = () => import('./views/avue-form-design/index.vue');
    Vue.component('AvueFormDesign', defineAsyncComponent(AvueFormDesign));
    Vue.component('WidgetFormContainer', defineAsyncComponent(WidgetFormContainer));
    Vue.config.globalProperties.getAsVal = getAsVal;
    Vue.config.globalProperties.avueVersion = avueVersion;
    Vue.config.globalProperties.deepClone = deepClone;
  }
};

// export const AvueFormDesign = FormDesign;
